package com.xzan.medusa.dal.mapper;

import com.xzan.medusa.dal.model.CcCarDO;
import com.xzan.medusa.dal.query.CcCarQuery;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
/**
 * MyBatis Mapper for CcCar.
 */
 @Mapper
 @Repository
public interface CcCarMapper {
    /**
     * query count by query condition.
     */
    int countByQuery(CcCarQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(CcCarQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(CcCarDO record);

    /**
     * insert selective.
     */
    int insertSelective(CcCarDO record);

    /**
     * batch insert.
     */
    int batchInsert(List<CcCarDO> records);

    /**
     * select by query condition.
     */
    List<CcCarDO> selectByQuery(CcCarQuery query);

    /**
     * select by primary key.
     */
    CcCarDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective(@Param("record") CcCarDO record, @Param("query") CcCarQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(@Param("record") CcCarDO record, @Param("query") CcCarQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(CcCarDO record);
}